﻿@model PlmDirectorlogViewModel
@{
    Layout = null;
    ViewBag.Title = "总监/驻地日志添加";
}
<script src="/Scripts/jQuery/jquery.validate.min.js" type="text/javascript"></script>
<script src="/Scripts/jQuery/jquery.validate.unobtrusive.min.js" type="text/javascript"></script>
@{Html.EnableClientValidation();}
@using (Html.BeginForm("DirectorLogAddHandle", "PlmDirectorLog", null, FormMethod.Post, new { onsubmit = "return validateCallback(this,dialogAjaxDone);", @class = "pageForm required-validate" }))
{
@*<form method="post" action="/PersonnelLog/PlmDirectorLog/DirectorLogAddHandle" class="pageForm required-validate" onsubmit="return validateCallback(this,dialogAjaxDone)">*@
    @Html.HiddenFor(model => model.OperationType, new { Value = ViewBag.OperationType })
    @Html.HiddenFor(model => model.ThePlmDirectorlog.Dl_ID)
    <input id="AssistID" name="AssistID" value="@ViewBag.AssisId" type="hidden"/>
    <div class="pageContent">
        <div class="pageFormContent sortDrag" layouth="60">
            <dl style="display:none">
                <dt>操作人：</dt>
                <dd>
                @Html.TextBoxFor(model => model.ThePlmDirectorlog.Dl_UserID, new { @readonly = "true"})
                    @Html.TextBoxFor(model => model.ThePlmDirectorlog.Dl_UserName, new { @readonly = "true"})
                </dd>
            </dl>
            <dl style="display:none">
                <dt>操作日期：</dt>
                <dd>
                    @Html.TextBoxFor(model => model.ThePlmDirectorlog.Dl_UpdateTime, new { @readonly = "true", Value = @DateTime.Now.ToString("yyyy-MM-dd") })
                </dd>
            </dl>
            <dl>
                <dt>监理日志编号：</dt>
                <dd>
                    @Html.TextBoxFor(model => model.ThePlmDirectorlog.Dl_SupervisionNumber, new Dictionary<string, object> { { "class", "data-val-required input02" }})
                    @Html.ValidationMessageFor(model => model.ThePlmDirectorlog.Dl_SupervisionNumber)
                   @* @Html.TextBoxFor(model => model.ThePlmDirectorlog.Dl_SupervisionNumber, new { @class = "required" })*@
                </dd>
            </dl>
            <dl>
                <dt>巡视记录编号：</dt>
                <dd>
                     @Html.TextBoxFor(model => model.ThePlmDirectorlog.Dl_PatrolNumber, new Dictionary<string, object> { { "class", "data-val-required input02" }})
                    @Html.ValidationMessageFor(model => model.ThePlmDirectorlog.Dl_PatrolNumber)
                   @* @Html.TextBoxFor(model => model.ThePlmDirectorlog.Dl_PatrolNumber, new { @class = "required" })</dd>*@
            </dl>
            <dl>
                <dt>标段：</dt>
                <dd>
                     @Html.TextBoxFor(model => model.ThePlmDirectorlog.Dl_ContractNumber, new Dictionary<string, object> { { "class", "data-val-required input02" }})
                    @Html.ValidationMessageFor(model => model.ThePlmDirectorlog.Dl_ContractNumber)
                   @* @Html.TextBoxFor(model => model.ThePlmDirectorlog.Dl_ContractNumber, new { @class = "required" })*@
                </dd>
            </dl>
            <dl>
                <dt>记录日期：</dt>
                <dd>
                    @Html.TextBoxFor(model => model.ThePlmDirectorlog.Dl_RecordDate, new { @class = "date required", Value = Model.ThePlmDirectorlog.Dl_RecordDate.ToString("yyyy-MM-dd") })
                </dd>
            </dl>
            <dl>
                <dt>记录人：</dt>
                <dd>
                     @Html.TextBoxFor(model => model.ThePlmDirectorlog.Dl_RecordUser, new Dictionary<string, object> { { "class", "data-val-required input02" }})
                    @Html.ValidationMessageFor(model => model.ThePlmDirectorlog.Dl_RecordUser)
                   @* @Html.TextBoxFor(model => model.ThePlmDirectorlog.Dl_RecordUser, new { @class = "required" })*@
                    </dd>
            </dl>
            <dl>
                <dt>专业职位：</dt>
                <dd>
                     @Html.TextBoxFor(model => model.ThePlmDirectorlog.Dl_SpecialtyPosition, new Dictionary<string, object> { { "class", "data-val-required input02" }})
                    @Html.ValidationMessageFor(model => model.ThePlmDirectorlog.Dl_SpecialtyPosition)
                   @* @Html.TextBoxFor(model => model.ThePlmDirectorlog.Dl_SpecialtyPosition, new { @class = "required" })*@
                    </dd>
            </dl>
            <dl class="nowrap">
                <dt>监理单位：</dt>
                <dd>
                      @Html.TextBoxFor(model => model.ThePlmDirectorlog.Dl_SupervisorName, new Dictionary<string, object> { { "class", "data-val-required input02" }})
                    @Html.ValidationMessageFor(model => model.ThePlmDirectorlog.Dl_SupervisorName)
                   @* @Html.TextBoxFor(model => model.ThePlmDirectorlog.Dl_SupervisorName, new { @class = "required" })*@
                </dd>
            </dl>
            <dl class="nowrap">
                <dt>监理范围：</dt>
                <dd>
                      @Html.TextBoxFor(model => model.ThePlmDirectorlog.Dl_SupervisorScope, new Dictionary<string, object> { { "class", "data-val-required input02" }})
                    @Html.ValidationMessageFor(model => model.ThePlmDirectorlog.Dl_SupervisorScope)
                   @* @Html.TextBoxFor(model => model.ThePlmDirectorlog.Dl_SupervisorScope, new { @class = "required", size = 60 })*@

                </dd>
            </dl>
            <div class="divider"></div>
            <h3>&nbsp;监理日志</h3>
            <dl>
                <dt>审核人：</dt>
                <dd>
                    @Html.TextBoxFor(model => model.ThePlmDirectorlog.Dl_AuditMan)
                </dd>
            </dl>
            <dl>
                <dt>天气情况：</dt>
                <dd>
                    @Html.TextBoxFor(model => model.ThePlmDirectorlog.Dl_Weather)</dd>
            </dl>
            <dl class="nowrap">
                <dt>主要施工情况：</dt>
                <dd>
                    @Html.TextAreaFor(model => model.ThePlmDirectorlog.Dl_ConstructionSituation, new { cols = "80", rows = "5" })
                </dd>
            </dl>
            <dl class="nowrap">
                <dt>监理主要工作：</dt>
                <dd>
                    @Html.TextAreaFor(model => model.ThePlmDirectorlog.Dl_SupervisorJob, new { cols = "80", rows = "5" })
                </dd>
            </dl>
            <dl class="nowrap">
                <dt>问题及处理情况：</dt>
                <dd>
                    @Html.TextAreaFor(model => model.ThePlmDirectorlog.Dl_ProblemsDispose, new { cols = "80", rows = "5" })
                </dd>
            </dl>
            <div class="divider"></div>
            <h3>&nbsp;巡视记录</h3>
            <dl class="nowrap">
                <dt>施工单位：</dt>
                <dd>
                    @Html.TextBoxFor(model => model.ThePlmDirectorlog.Dl_ConstructionName, new { size = "60" })
                </dd>
            </dl>
            <dl>
                <dt>合同段：</dt>
                <dd>
                    @Html.TextBoxFor(model => model.ThePlmDirectorlog.Dl_ContractSection)
                </dd>
            </dl>
            <dl>
                <dt>巡视人：</dt>
                <dd>
                    @Html.TextBoxFor(model => model.ThePlmDirectorlog.Dl_PatrolMan)</dd>
            </dl>
            <dl>
                <dt>巡视时间：</dt>
                <dd>
                    @Html.TextBoxFor(model => model.ThePlmDirectorlog.Dl_PatrolTime, new { @class = "date required", Value = @DateTime.Now.ToString("yyyy-MM-dd") })</dd>
            </dl>
            <dl class="nowrap">
                <dt>巡视的范围：</dt>
                <dd>
                    @Html.TextAreaFor(model => model.ThePlmDirectorlog.Dl_PatrolScope, new { cols = "80", rows = "5" })
                </dd>
            </dl>
            <dl class="nowrap">
                <dt>主要施工情况：</dt>
                <dd>
                    @Html.TextAreaFor(model => model.ThePlmDirectorlog.Dl_PatrolConstruction, new { cols = "80", rows = "5" })
                </dd>
            </dl>
            <dl class="nowrap">
                <dt>质量、安全、环保等情况：</dt>
                <dd>
                    @Html.TextAreaFor(model => model.ThePlmDirectorlog.Dl_OtherSituation, new { cols = "80", rows = "5" })
                </dd>
            </dl>
            <dl class="nowrap">
                <dt>发现的问题及处理意见：</dt>
                <dd>
                    @Html.TextAreaFor(model => model.ThePlmDirectorlog.Dl_PatroProblems, new { cols = "80", rows = "5" })
                </dd>
            </dl>
            <dl>
                <dt>附件：</dt>
                <dd>
                   <a href='/Common/UploaderFile/Uploader/?id=ZDFileID' width="710" height="460" rel="rel_WorkFlow_WorksMeasure_Attach" mask="true" target="dialog" title="附件管理">
                      <img src="/Content/themes/default/images/fj.gif" alt="查看附件" id='ZDFileID' 
                       uploaderoption="{MoudleID:@ViewBag.MoudleID,'ToSelectIDs':[@ViewBag.FileIds],'ToDeleteIDs':[@ViewBag.DeleteIds],BizDeleteURL:'/PersonnelLog/Base/Delete/',BizSaveUrl:'/PersonnelLog/Base/BatchAdd/',BizType:'DirectorLog_Rules',BizID:'@ViewBag.AssisId','dirWhere':'@ViewBag.DirWhere'}" />
                       </a>
                </dd>
            </dl>
        </div>

        <div class="formBar">
            <ul>
                @if (ViewBag.OperationType != "view")
                {
                   <li>
                        <button type="submit" class="btn btn-sm">保存</button>
                    </li>
                }

                 <li>
                    <button type="button" class="close btn btn-default btn-sm">取消</button>
                </li>

            </ul>
        </div>

    </div>
@*</form>*@
}
